package com.eurobcoin.filipides.model;

import java.io.Serializable;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

public class SignupForm implements Serializable {

	private static final long serialVersionUID = -7335214808430031112L;

	@Email(message="Email.signupForm.email")
	@NotEmpty(message="NotEmpty.signupForm.email")
	@Size(max=255, message="Size.signupForm.email")
	private String email;
	
	private String salt;
	
	private String hashedPassword;
	
	private String inviteHash;
	
	private boolean error;
	
	private String errorMsg;

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getHashedPassword() {
		return hashedPassword;
	}

	public void setHashedPassword(String hashedPassword) {
		this.hashedPassword = hashedPassword;
	}

	public String getInviteHash() {
		return inviteHash;
	}

	public void setInviteHash(String inviteHash) {
		this.inviteHash = inviteHash;
	}

	public boolean isError() {
		return error;
	}

	public void setError(boolean error) {
		this.error = error;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	
	public void reset() {
		this.email = null;
		this.hashedPassword = null;
		this.inviteHash = null;
		this.error = false;
		this.errorMsg = null;
	}
	
}
